package sk.tuke.constraintbuilder.model;

public enum Severity {
	
	WARNING, ERROR;
	
	public String value(){
		return name();
	}

	public static String[] getValues(){
		return new String [] {"WARNING", "ERROR"};
	}
	
	public static Severity getSeverity(String severity){
		switch(severity){
			case "WARNING": return Severity.WARNING;
			case "ERROR": return Severity.ERROR;
		}
		return Severity.ERROR;
	}
}
